dark theme UserCSS@v.0.3.0
takker.iconの編集用テーマ
変更点
JSでdata-project-themeを直接変更するようにした
code:script.js
import {setTheme} from '../scrapbox-theme-customizer/script.js';
const path = '/api/code/takker/dark_theme_UserCSS@v.0.3.0/style.css';
setTheme('default-dark');
document.head.insertAdjacentHTML('beforeend', `
<link rel="stylesheet" href="${path}">
`);
一部の色をspringに合わせる
code:style.css
body {
--dark-theme-border: solid 1px #888; }
code:style.css
body {
--navbar-bg: rgba(2, 167, 137, .5);
}
New Button
code:style.css
body {
--new-button-vertical-color: var(--new-button-horizontal-color);
}
Page Menu
code:style.css
body {
--body-headings-color: var(--tool-color);
}
本文
code:style.css
body {
--cursor-code-line-number-color: #FF00F0; }
code:style.css
body {
--dropdown-menu-text-color: var(--page-text-color);
--dropdown-menu-divider-color: var(--page-bg);
--dropdown-menu-text-hover-color: var(--page-text-color);
}
code:style.css
.dropdown-menu,
.drawer .drawer-menu{
background-color: var(--dropdown-menu-bg, #fff); border: var(--dropdown-menu-border, unset);
}
.dropdown-menu > li > a,
.drawer .drawer-menu ul li a,
.page-menu ul > li > div {
color: var(--dropdown-menu-text-color, #333); }
.dropdown-menu>li>a:active,
.drawer-menu ul li a:active,
color: var(--dropdown-menu-text-hover-color, #262626); background-color: var(--dropdown-menu-text-hover-bg, #f5f5f5); }
.dropdown-menu .divider,
.drawer-menu .divider {
background-color: var(--dropdown-menu-divider-color, #e5e5e5); }
code:style.css
body {
--card-title-bg: var(--navbar-bg);
--card-title-bg-pinned: var(--navbar-bg);
}
editorに枠線をつける
code:style.css
.page {
box-shadow: none;
}
code:style.css
.table-block .cell {
border-bottom: solid 1px #888; }
code:style.css
code.code span,
code.cli span,
.line code.code-body,
.line .formula code,
.page-list-item .description code/* ページカード用 */{
color: var(--code-color);
}
.line code.helpfeel {
background-color: var(--code-bg);
}
.line span.code-block .code-block-start {
}
.line span.code-block .code-block-start>css,
.line span.code-block .code-block-start>span>*{
font-size: inherit;
color: rgba(157, 165, 180, 0.6);
}
.line span.code-block .code-block-start>* {
padding: 3px;
}
.line span.code-block .code-block-start:hover{
color: rgba(157, 165, 180, 1.0);
}
span.hljs-keyword, span.hljs-selector-attr{
color:#c678dd;
}
span.hljs-selector-id{
}
span.hljs-selector-tag{
}
span.hljs-selector-class, span.hljs-selector-pseudo{
}
span.hljs-built_in {
}
span.hljs-class>.hljs-title{
}
span.hljs-function>.hljs-title{
}
span.hljs-string{
}
span.hljs-number{
}
code blockの色調節
code:style.css
.line span.code-block .pad:not(.code-block-margin) {
background-color: rgba(255,255,255,0.05);
}
.code-block .pad:not(.code-block-margin)::before {
}
.line span.code-block .code-block-margin {
background-color: var(--page-bg);
}
code:style.css
/* code blockの頭を静かな色にする */
.line span.code-block .code-block-start {
background-color: rgb(39, 40, 34) !important;
padding: 2px 5px 2px 5px !important;
}
.line span.code-block .code-block-start a {
}
選択範囲の色を青白にする
デフォルトの緑色は、黒背景に合わなかった
白にした
code:style.css
::selection {
color: unset;
background: rgba(0,115,230,0.5);
}
.selection{
}
中黒の色を変える
code:style.css
.line .indent-mark .dot {
background-color: gray;
}
.line.number-list .dot::before {
color: gray;
}
References